package top.sqdpt.third.strategy.impl;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import top.sqdpt.third.config.WeatherProperties;

import top.sqdpt.third.entity.dto.*;
import top.sqdpt.third.enums.WeatherType;
import top.sqdpt.third.strategy.AbstractWeatherStrategy;


import java.util.List;


/**
 * 高德天气处理类
 * 实现高德地图天气API的调用
 */
@Slf4j
@Component
public class GaoDeWeatherHandler extends AbstractWeatherStrategy {
    private static final String SUCCESS_STATUS = "1";
    private static final String GEOCODES_KEY = "geocodes";
    private static final String FORECASTS_KEY = "forecasts";
    private static final String CASTS_KEY = "casts";
    private static final String LIVES_KEY = "lives";
    private static final String ADCODE_KEY = "adcode";
    private static final String STATUS_KEY = "status";
    private static final String INFO_KEY = "info";
    private static final String CITY_KEY = "city";

    public GaoDeWeatherHandler(WeatherProperties properties) {
        super(properties);
    }

    @Override
    public WeatherType getWeatherType() {
        return WeatherType.GAO_DE;
    }

    @Override
    public List<WeatherResponseDTO> queryWeather(WeatherRequestDTO requestDTO) {
        return List.of();
    }

    @Override
    public List<WeatherResponseDTO> queryWeatherForecast(WeatherRequestDTO requestDTO) {
        return List.of();
    }

    @Override
    public WeatherResponseDTO queryWeatherNow(WeatherRequestDTO requestDTO) {
        return null;
    }

    @Override
    public String getCityCode(String address, String city) {
        return "";
    }

}
